<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ include file="../base.jsp" %>
<!DOCTYPE html>
<html>

<head>
    <!-- 页面meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>正达建筑设计院图纸管理系统</title>
    <meta name="description" content="AdminLTE2定制版">
    <meta name="keywords" content="AdminLTE2定制版">
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
    <!-- 页面meta /-->
</head>
<body>
<div id="frameContent">
    <!-- 内容头部 -->
    <section class="content-header" class="content-wrapper" style="margin-left:0px;">
        <h1>
            企业管理
            <small>合作企业表单</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="all-admin-index.html"><i class="fa fa-dashboard"></i> 首页</a></li>
            <li><a href="all-order-manage-list.html">企业管理</a></li>
            <li class="active">企业表单</li>
        </ol>
    </section>
    <!-- 内容头部 /-->

    <!-- 正文区域 -->
    <section class="content">

        <div class="box-body">
            <div class="nav-tabs-custom">
                <ul class="nav nav-tabs">
                    <li class="active">
                        <a href="#tab-form" data-toggle="tab">添加企业信息</a>
                    </li>
                </ul>
                <div class="tab-content">
                    <form id="editForm" action="${ctx}/company/save" method="post">
                        <input type="hidden" name="id" value="${company.id}">
                        <div class="row data-type" style="margin: 0px">
                            <div class="col-md-2 title">合作企业</div>
                            <div class="col-md-4 data">
                                <input type="text" class="form-control" placeholder="合作企业" name="name" value="${company.name}">
                            </div>

                            <div class="col-md-2 title">企业地址</div>
                            <div class="col-md-4 data">
                                <input type="text" class="form-control" placeholder="企业地址" name="address" value="${company.address}">
                            </div>

                            <div class="col-md-2 title">企业法人</div>
                            <div class="col-md-4 data">
                                <input type="text" class="form-control" placeholder="企业法人" name="representative" value="${company.representative}">
                            </div>

                            <div class="col-md-2 title">联系电话</div>
                            <div class="col-md-4 data">
                                <input type="text" class="form-control" placeholder="联系电话" name="phone" value="${company.phone}">
                            </div>

                            <div class="col-md-2 title">公司规模</div>
                            <div class="col-md-4 data">
                                <input type="text" class="form-control" placeholder="公司规模" name="companySize" value="${company.companySize}">
                            </div>

                            <div class="col-md-2 title">备注</div>
                            <div class="col-md-4 data">
                                <input type="text" class="form-control" placeholder="备注" name="info"
                                       value="${company.info}">
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </section>
    <div class="box-tools text-center">
        <button type="button" onclick='document.getElementById("editForm").submit()' class="btn bg-maroon">保存</button>
        <button type="button" class="btn bg-default" onclick="history.back(-1);">返回</button>
    </div>
</div>
<!-- 内容区域 /-->
</body>
<script src="${ctx}/plugins/datepicker/bootstrap-datepicker.js"></script>
<script src="${ctx}/plugins/datepicker/locales/bootstrap-datepicker.zh-CN.js"></script>
<link rel="stylesheet" href="${ctx}/css/style.css">
</html>